#ifndef __APP_H__
#define __APP_H__

#include "Config.h"
#include "Motors.h"
#include "Buzzer.h"
#define    FONT_H	            16
#define TASK_KEY			    1
#define TASK_OLED		      2
#define TASK_SETT		      3
#define TASK_RTC      		4         
extern u8 alarm_flag;
extern u8 set_mode;
extern u8 chose_mode;
typedef struct Clock {
    u16 year;
    u8 month;
    u8 day;
    u8 week;
    u8 hour;
    u8 minute;
    u8 second;
} Clock_t;
typedef struct Alarm {
    signed char minute;	// [-128, 127]
    signed char hour;
    signed char day;
    signed char week;
} Alarm_t;
#endif